\hypertarget{class_asteroid}{
\section{Asteroid Class Reference}
\label{class_asteroid}\index{Asteroid@{Asteroid}}
}


Game object for asteroid that can be smashed by \hyperlink{class_space_craft}{SpaceCraft}.  


Inheritance diagram for Asteroid:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{class_asteroid}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_asteroid_a6845fa2d769bc97ebd469fff1b78b4b7}{Asteroid} (\hyperlink{gameobject_8h_a57678b60d65afb213d04a6b090c64a08}{GameObjectType}, int, bool, \hyperlink{gameobject_8h_a04d872bb0ec7701fa714b72007a6f562}{GameObjectMass} mass)
\begin{DoxyCompactList}\small\item\em Constructor for asteroid. \item\end{DoxyCompactList}\item 
\hypertarget{class_asteroid_af110c38d69c72957a8141ae6e378a974}{
GLfloat \hyperlink{class_asteroid_af110c38d69c72957a8141ae6e378a974}{posZ} () const }
\label{class_asteroid_af110c38d69c72957a8141ae6e378a974}

\begin{DoxyCompactList}\small\item\em Get asteroid Z position. \item\end{DoxyCompactList}\item 
\hypertarget{class_asteroid_aca894c27c3d5d76c4ca9173c927d6767}{
void \hyperlink{class_asteroid_aca894c27c3d5d76c4ca9173c927d6767}{setMediumAsteroidPosZ} (GLfloat z)}
\label{class_asteroid_aca894c27c3d5d76c4ca9173c927d6767}

\begin{DoxyCompactList}\small\item\em Get medium asteroid Z position. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_asteroid_aae81ea2b50f6742f3b663862d9cd9910}{
GLfloat \hyperlink{class_asteroid_aae81ea2b50f6742f3b663862d9cd9910}{positionZ}}
\label{class_asteroid_aae81ea2b50f6742f3b663862d9cd9910}

\begin{DoxyCompactList}\small\item\em Z axle posrition for Asteroids. Zero for large asteroids, nonzero but constant for medium asteroids. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Game object for asteroid that can be smashed by \hyperlink{class_space_craft}{SpaceCraft}. \hyperlink{class_asteroid}{Asteroid} also rotates and wraps on screen. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_asteroid_a6845fa2d769bc97ebd469fff1b78b4b7}{
\index{Asteroid@{Asteroid}!Asteroid@{Asteroid}}
\index{Asteroid@{Asteroid}!Asteroid@{Asteroid}}
\subsubsection[{Asteroid}]{\setlength{\rightskip}{0pt plus 5cm}Asteroid::Asteroid (
\begin{DoxyParamCaption}
\item[{{\bf GameObjectType}}]{ type, }
\item[{int}]{ frame, }
\item[{bool}]{ rewindEnabled, }
\item[{{\bf GameObjectMass}}]{ mass}
\end{DoxyParamCaption}
)}}
\label{class_asteroid_a6845fa2d769bc97ebd469fff1b78b4b7}


Constructor for asteroid. 

{\itshape gameObjectType\/} Type of the game object as \hyperlink{gameobject_8h_a57678b60d65afb213d04a6b090c64a08}{GameObjectType}

{\itshape frame\/} Current frame number. When the \hyperlink{class_game_object}{GameObject} was created.

{\itshape rewindEnabled\/} Is the rewind mode enabled.

{\itshape mass\/} Mass of the game object as \hyperlink{gameobject_8h_a04d872bb0ec7701fa714b72007a6f562}{GameObjectMass}. 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
asteroid.h\item 
asteroid.cpp\end{DoxyCompactItemize}
